package com.intelligentcar.springboot.mapper;

import com.intelligentcar.springboot.bean.Manager;
import com.intelligentcar.springboot.bean.News;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface NewsMapper {

    List<News> LookLook(News news);

    List<News> LookaddTime(@Param(value = "addTime")String addTime);

    //展示所有通新闻知
    List<News> Looknews();

    //查询总条数
    int selectNews();

    //修改公告信息
    int update(News news);

    //删除公告
    int delete(long id);

    //增加公告
    int add(News news);
}
